package com.java2007.pojo;

import java.util.Date;

/**
 * 餐桌类
 */
public class Table {
    /**
     * 餐桌id
     */
    private Integer tableId;
    /**
     * 餐桌名字
     */
    private String tableName;
    /**
     * 餐桌状态 0 空闲 1 预定
     */
    private Integer tableStatus;
    /**
     * 预定时间
     */
    private Date reserveTime;
    /**
     * 餐桌创建时间
     */
    private Date tableCreateTime;
    /**
     * 餐桌更新时间
     */
    private Date tableUpdateTime;
    /**
     * 餐桌创建者
     */
    private Integer userId;

    public Table() {
    }

    public Table(Integer tableId, Integer tableStatus) {
        this.tableId = tableId;
        this.tableStatus = tableStatus;
    }

    public Table(Integer tableId, String tableName, Integer tableStatus, Date reserveTime, Date tableCreateTime, Date tableUpdateTime, Integer userId) {
        this.tableId = tableId;
        this.tableName = tableName;
        this.tableStatus = tableStatus;
        this.reserveTime = reserveTime;
        this.tableCreateTime = tableCreateTime;
        this.tableUpdateTime = tableUpdateTime;
        this.userId = userId;
    }

    @Override
    public String toString() {
        return "Table{" +
                "tableId=" + tableId +
                ", tableName='" + tableName + '\'' +
                ", tableStatus=" + tableStatus +
                ", reserveTime=" + reserveTime +
                ", tableCreateTime=" + tableCreateTime +
                ", tableUpdateTime=" + tableUpdateTime +
                ", userId=" + userId +
                '}';
    }

    public Integer getTableId() {
        return tableId;
    }

    public void setTableId(Integer tableId) {
        this.tableId = tableId;
    }

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public Integer getTableStatus() {
        return tableStatus;
    }

    public void setTableStatus(Integer tableStatus) {
        this.tableStatus = tableStatus;
    }

    public Date getReserveTime() {
        return reserveTime;
    }

    public void setReserveTime(Date reserveTime) {
        this.reserveTime = reserveTime;
    }

    public Date getTableCreateTime() {
        return tableCreateTime;
    }

    public void setTableCreateTime(Date tableCreateTime) {
        this.tableCreateTime = tableCreateTime;
    }

    public Date getTableUpdateTime() {
        return tableUpdateTime;
    }

    public void setTableUpdateTime(Date tableUpdateTime) {
        this.tableUpdateTime = tableUpdateTime;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }
}
